package com.care.doctor.server.controller;

import com.care.common.core.domain.Result;
import com.care.doctor.common.domain.DTODoctorType;
import com.care.doctor.common.req.ListReq;
import com.care.doctor.server.service.DoctorTypeService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 靳家振
 * @Date: 2024/3/22 21:42
 * @Description:
 **/

@RestController
@RequestMapping("/doctorType")
public class DoctorTypeController {
    @Autowired
    private DoctorTypeService doctorTypeService;
    @PostMapping("/findDoctorType")
    public Result<PageInfo<DTODoctorType>> findDoctorType(@RequestBody ListReq req) {
        return doctorTypeService.findDoctorType(req);
    }

}
